package com.cupk.dtos;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UpdateUserRequest {

    @Size(min = 1, max = 100, message = "全名长度必须在1到100之间")
    private String fullName;

    @Email(message = "邮箱格式不正确")
    private String email;

    @Pattern(regexp = "^$|^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String phoneNumber; // 可以为空或符合中国大陆手机号格式

    @Size(max = 100, message = "部门名称长度不能超过100个字符")
    private String department; // 部门字段

    @Pattern(regexp = "^(IDLE|BUSY|OFFLINE)$", message = "状态必须是 IDLE、BUSY 或 OFFLINE")
    private String status; // 用户状态：IDLE, BUSY, OFFLINE
}
